package reflect1;

public class Stu {
    private String name;

    private Stu() {
    }

    @Override
    public String toString() {
        return "Stu{" +
                "name='" + name + '\'' +
                '}';
    }

    public String getName() throws Exception {
        return name;
    }

    public void setName(String name) throws Exception {
        this.name = name;
    }

    public Stu(String name) {
        this.name = name;
    }
}
